//
//  TableViewCell1.m
//  UITalbeview周六作业
//
//  Created by dllo on 15/12/25.
//  Copyright © 2015年 lanou3g. All rights reserved.
//

#import "TableViewCell1.h"

@implementation TableViewCell1

- (void)dealloc{
    [_lable1 release];
    [_lable2 release];
    [_lable3 release];
    [_lable4 release];
    [_lable5 release];
    [_lable6 release];
    [_lable7 release];
    [_lable8 release];
    [_image1 release];
    [_image2 release];
    [_image3 release];
    [_image4 release];
    [_image5 release];
    [_image6 release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self create];
    }
    return self;
}
/** 你好 */
- (void)create{
    self.image1 = [[UIImageView alloc] init];
    [self.contentView addSubview:_image1];
    [_image1 release];
    
    self.image2 = [[UIImageView alloc] init];
    [_image1 addSubview:_image2];
    [_image2 release];
    
    self.image3 = [[UIImageView alloc] init];
    [_image2 addSubview:_image3];
    [_image3 release];
    
    self.image4 = [[UIImageView alloc] init];
    [_image2 addSubview:_image4];
    [_image4 release];
    
    self.image5 = [[UIImageView alloc] init];
    [_image2 addSubview:_image5];
    [_image5 release];
    
    self.image6 = [[UIImageView alloc] init];
    [_image2 addSubview:_image6];
    [_image6 release];
    
    self.lable1 = [[UILabel alloc] init];
    [_image1 addSubview:_lable1];
    [_lable1 release];
    
    self.lable2 = [[UILabel alloc] init];
    [_image2 addSubview:_lable2];
    [_lable2 release];
    
    self.lable3 = [[UILabel alloc] init];
    [_image2 addSubview:_lable3];
    [_lable3 release];
    
    self.lable4 = [[UILabel alloc] init];
    [_image2 addSubview:_lable4];
    [_lable4 release];
    
    self.lable5 = [[UILabel alloc] init];
    [_image2 addSubview:_lable5];
    [_lable5 release];
    
    self.lable6 = [[UILabel alloc] init];
    [_image2 addSubview:_lable6];
    [_lable6 release];
    
    self.lable7 = [[UILabel alloc] init];
    [_image2 addSubview:_lable7];
    [_lable7 release];
    
    self.lable8 = [[UILabel alloc] init];
    [_image2 addSubview:_lable8];
    [_lable8 release];
    
}

- (void)layoutSubviews{
    [super layoutSubviews];
    
    _image1.frame = CGRectMake(5, 5, 365, 250);
    _image1.backgroundColor = [UIColor clearColor];
    
    _image2.frame = CGRectMake(5, 50, 355, 190);
    _image2.backgroundColor = [UIColor whiteColor];
    
    _image3.frame = CGRectMake(10, 10, 25, 25);
    _image3.backgroundColor = [UIColor whiteColor];
    
    _image4.frame = CGRectMake(10, 50, 25, 25);
    _image4.backgroundColor = [UIColor whiteColor];
    
    _image5.frame = CGRectMake(10, 90, 25, 25);
    _image5.backgroundColor = [UIColor whiteColor];
    
    _image6.frame = CGRectMake(260, 10, 90, 170);
    _image6.backgroundColor = [UIColor whiteColor];
    
    _lable1.frame = CGRectMake(5, 5, 320, 40);
    _lable1.backgroundColor = [UIColor clearColor];
    
    _lable2.frame = CGRectMake(40, 10, 200, 25);
    _lable2.backgroundColor = [UIColor clearColor];
    _lable2.font = [UIFont systemFontOfSize:15];
    
    _lable3.frame = CGRectMake(40, 50, 200, 25);
    _lable3.backgroundColor = [UIColor clearColor];
    _lable3.font = [UIFont systemFontOfSize:15];
    
    _lable4.frame = CGRectMake(40, 90, 200, 25);
    _lable4.backgroundColor = [UIColor clearColor];
    _lable4.font = [UIFont systemFontOfSize:15];
    
    
    _lable5.frame = CGRectMake(80, 150, 50, 25);
    _lable5.backgroundColor = [UIColor clearColor];
    _lable5.textColor = [UIColor redColor];
    _lable5.font = [UIFont systemFontOfSize:15];
    
    _lable6.frame = CGRectMake(180, 150, 50, 25);
    _lable6.backgroundColor = [UIColor clearColor];
    _lable6.textColor = [UIColor redColor];
     _lable6.font = [UIFont systemFontOfSize:15];
    
    _lable7.frame = CGRectMake(30, 150, 50, 25);
    _lable7.backgroundColor = [UIColor clearColor];
    _lable7.text = @"感兴趣:";
    _lable7.font = [UIFont systemFontOfSize:15];
    
    _lable8.frame = CGRectMake(140, 150, 40, 25);
    _lable8.backgroundColor = [UIColor clearColor];
    _lable8.text = @"参加:";
    _lable8.font = [UIFont systemFontOfSize:15];
}









- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
